<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.dwusoft.database.constant.Validator"%>
<%@page import="com.dwusoft.passport.entity.Token"%>
<%@page import="com.dwusoft.database.constant.SystemTools"%>
<%@page import="com.dwusoft.passport.common.PassportHelper"%>

<%@ include file="/common/import.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>dwusoft Passport</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
 
 
  <body>
	   <h5>Signing in...</h5>
	   <%
	   
	   		String sysEname = request.getParameter("sys");
			String setCookieUrl = request.getParameter("cset");
			String goUrl = request.getParameter("go");
			String clientId = request.getParameter("_client");
			String tokenId =(String) request.getAttribute("tokenId");
			
			Cookie cookie = null;
			cookie = new Cookie("dwu_", tokenId);
			cookie.setPath("/");
			response.addCookie(cookie);
			response.sendRedirect(setCookieUrl + "?ticket=" + tokenId + "&go=" + goUrl);//
	    %>
	   <%@ include file="/common/bottom.jsp"%>
  </body>
</html>
